import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  // base: process.env.BASE_URL,
  base: '/',
  routes: [{
    path: '/',
    meta: {
      title: '前端后台框架Demo',
      requiresAuth: false
    },
    component: () => import('./views/login/Login')
  },
  {
    path: '/signin',
    meta: {
      title: '登录',
      requiresAuth: false
    },
    component: () => import('./views/login/SignIn')
  },
  {
    path: '/signup',
    meta: {
      title: '注册',
      requiresAuth: false
    },
    component: () => import('./views/login/SignUp')
  },
  {
    path: '/home',
    meta: {
      title: 'Home',
      requiresAuth: false
    },
    component: Home,
    children: [{
      path: '/',
      redirect: '/welcome'
    }, {
      path: '/welcome',
      meta: {
        requiresAuth: false
      },
      component: () => import('./views/Welcome')
    }, {
      path: '/item/january/January',
      name: 'january',
      meta: {
        requiresAuth: false
      },
      component: () => import('./views/item/january/January')
    }, {
      path: '/item/january/janWeek1',
      meta: {
        title: '一月第1周',
        requiresAuth: false
      },
      component: () => import('./views/item/january/JanWeek1')
    }, {
      path: '/item/january/janWeek2',
      meta: {
        title: '一月第2周',
        requiresAuth: false
      },
      component: () => import('./views/item/january/JanWeek2')
    }, {
      path: '/item/january/janWeek3',
      meta: {
        title: '一月第3周',
        requiresAuth: false
      },
      component: () => import('./views/item/january/JanWeek3')
    }, {
      path: '/item/january/janWeek4',
      meta: {
        title: '一月第4周',
        requiresAuth: false
      },
      component: () => import('./views/item/january/JanWeek4')
    }, {
      path: '/item/February',
      meta: {
        title: '二月份',
        requiresAuth: false
      },
      component: () => import('./views/item/February')
    }, {
      path: '/item/March',
      meta: {
        title: '三月份',
        requiresAuth: false
      },
      component: () => import('./views/item/March')
    }, {
      path: '/item/April',
      meta: {
        title: '四月份',
        requiresAuth: false
      },
      component: () => import('./views/item/April')
    }, {
      path: '/item/May',
      meta: {
        title: '五月份',
        requiresAuth: false
      },
      component: () => import('./views/item/May')
    }, {
      path: '/item/June',
      meta: {
        title: '六月份',
        requiresAuth: false
      },
      component: () => import('./views/item/June')
    }, {
      path: '/item/July',
      meta: {
        title: '七月份',
        requiresAuth: false
      },
      component: () => import('./views/item/July')
    }, {
      path: '/item/August',
      meta: {
        title: '八月份',
        requiresAuth: false
      },
      component: () => import('./views/item/August')
    }, {
      path: '/item/September',
      meta: {
        title: '九月份',
        requiresAuth: false
      },
      component: () => import('./views/item/September')
    }, {
      path: '/item/october/billlist',
      meta: {
        title: '票据融资列表',
        requiresAuth: false
      },
      component: () => import('./views/item/october/List.vue')
    }, {
      path: '/item/october/billdetail',
      meta: {
        title: '票据融资详情',
        requiresAuth: false
      },
      component: () => import('./views/item/october/Detail.vue')
    }, {
      path: '/item/october/billcreate',
      meta: {
        title: '票据融资申请',
        requiresAuth: false
      },
      component: () => import('./views/item/october/Create.vue')
    }, {
      path: '/item/November',
      meta: {
        title: '十一月份',
        requiresAuth: false
      },
      component: () => import('./views/item/November')
    }, {
      path: '/login/ChangePwd',
      meta: {
        title: '修改密码',
        requiresAuth: false
      },
      component: () => import('./views/login/ChangePwd')
    }, {
      path: '/item/December',
      meta: {
        title: '十二月份',
        requiresAuth: false
      },
      component: () => import('./views/item/December')
    }]
  }]
})
